package insight;


//丢掉等待时间最久的任务
public class DiscardRejuctHandle implements RejectHandle{
    @Override
    public void reject(Runnable command, MyThreadPool pool)  {
        while(!pool.blockingQueue.offer(command)){
            pool.blockingQueue.poll();
        }
    }
}
